
ac.skill('英雄29'){
    cool = 60,
    on_add = function(self)
        local hero = self.owner
        self:gc(hero:event '单位-拦截死亡'(function(_,data)
            if self:is_cooling()==false then
                self:active_cd()
                pz(self.title or self.name,hero:get_point() - {0,150})
                hero:add_buff '英雄29-效果'{
                    time = 5,
                    art = self.art,
                    title = self.title,
                    data1 = self.data1,
                    tip = [[生命恢复速度加快]],
                }
                return true
            end
        end))
    end
}

local mt = ac.buff['英雄29-效果']
mt.model1 = [[YXJN_bsqy.mdl]]
function mt:on_add()
    local hero = self.owner
    local effect = hero:add_effect(self.model1)
    effect.hide_when_remove = true
    self:gc(effect)
    self:gc(hero:add('生命恢复%',self.data1))
    self:gc(hero:event '单位-拦截受到伤害'(function(_,data)
        return true
    end))
end
